<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="js/react.development.js"></script>
    <script src="js/react-dom.development.js"></script>
    <script src="js/babel.min.js"></script>
</head>
<body>
    <div id="root"></div>
    <script type="text/babel">  
        let alist = ["红","黄","绿","蓝"];
        let e1 = alist.map((value,index)=>{
           return <li key={index}>{value}</li>
        })
        ReactDOM.render(
            <ul>{e1}</ul>,
            document.getElementById('root')
        )

        
    </script>
</body>
</html>